/* static/user/css/modules/equipment-details.css */
.details-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.details-drawer--active {
    right: 0;
}

.details-drawer__close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.details-drawer__content {
    margin-top: 30px;
}

/* 详情内容样式 */
.equipment-details__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.equipment-details__title {
    font-size: 24px;
    margin: 15px 0;
}

.equipment-details__meta {
    color: #666;
    margin-bottom: 15px;
}

.equipment-details__section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.equipment-details__section-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

/* static/user/css/modules/equipment-details.css */
.details-drawer {
    /* 保持原有布局样式 */
}

/* 新增详情样式 */
.equipment-details__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.equipment-details__title {
    font-size: 24px;
    margin: 0 0 8px;
    color: #333;
}

.equipment-details__category {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.equipment-details__specs {
    font-size: 16px;
    color: #2d3436;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.equipment-details__finance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.finance-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.finance-item__label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.finance-item__value {
    font-size: 16px;
    color: #2d3436;
    font-weight: 500;
}

.equipment-details__stock {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stock-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.stock-item__value {
    font-size: 18px;
    color: #2ecc71;
    font-weight: 500;
}

.stock-item__value--warning {
    color: #e74c3c;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #e74c3c;
    color: white;
    margin-bottom: 10px;
}